Skip to content

feat(Freecam): Add Exclude Rotation mode to freecam#269

Open
IceTank wants to merge 2 commits intolambda-client:1.21.11from
IceTank:feature/add-free-cam-rotation-exclusion-mode
Open

feat(Freecam): Add Exclude Rotation mode to freecam#269
IceTank wants to merge 2 commits intolambda-client:1.21.11from
IceTank:feature/add-free-cam-rotation-exclusion-mode

Conversation

@IceTank
Copy link
Contributor

@IceTank IceTank commented Mar 14, 2026

This mode lets you configure what rotations are applied to the player when rotation mode in freecam is enabled.
This is useful for when you are in freecam and want to be able to change the view direction of the player without exiting freecam. Possible use cases are elytra flying while in freecam and changing the player's yaw to the freecam yaw while flying.

@github-project-automation github-project-automation bot moved this to Backlog in Kanban Mar 14, 2026
@IceTank IceTank changed the title Add Exclude Rotation mode to freecam feat(Freecam): Add Exclude Rotation mode to freecam Mar 14, 2026
@beanbag44 beanbag44 self-requested a review March 17, 2026 01:20
}
}

private enum class FreecamRotationMode(override val displayName: String, override val description: String) : NamedEnum, Describable {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove the Freecam prefix for these enums. Theyre private so theres no need to preface what theyre for. Also while you're cleaning things up, might as well move these enums below the function at the bottom and remove the extra white space under the followTrackPlayer setting

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't. RotationMode is already used when configuring the rotation config. The names would conflict.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other enum can. Looking at the rotation configs enum, you can move that into the RotationConfig interface at the bottom and then reference it directly through the interface when setting the rotation config. The other configs do this, the rotation config is just a bit old and doesnt do that currently. That would allow you to remove the Freecam suffix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants